#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>

#include <unistd.h>

int main() {
	int c;

	while ((c=getchar()) != EOF) {
		if (isupper(c))
			c = tolower(c);

		if (putchar(c) == EOF)
			break;

		if (c == '\n')
			fflush(stdout);
	}
	return 0;
}